﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.ShoppingMall.EventAdvertising
{
    /// <summary>
    /// 秒杀
    /// </summary>
    [Table("shop_secondkill")]
    public class ShopSecondkill: FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 商品编号
        /// </summary>
        public Guid ShopProductId { get; set; }


        /// <summary>
        /// 秒杀价格
        /// </summary>
        public decimal SecondkillPrice { get; set; } = 0m;

        /// <summary>
        /// 秒杀总的仓库数量
        /// </summary>
        public int SecondkillCount { get; set; }

        /// <summary>
        /// 每个订单最大购买数
        /// </summary>
        public int SecondkillSingleCount { get; set; }

        /// <summary>
        /// 秒杀开始时间
        /// </summary>
        public DateTime SecondkillBeginTime { get; set; }

        /// <summary>
        /// 秒杀结束时间
        /// </summary>
        public DateTime SecondkillEndTime { get; set; }

        /// <summary>
        /// 秒杀标题
        /// </summary>
        [Required]
        public string SecondkillTitle { get; set; }

    }
}
